Ext.define('cp.view.ui.DecoratorForm',{
    extend: 'Ext.window.Window',
    alias: 'widget.decoratorForm',
    
    closable: true,
    resizable: false,
    minimizable: true,
    
    initComponent: function(){
        
        this.title = this.aTitle;
        this.items = this.aForm;
        
        this.buttons = [
            {text:'Guardar', action:'save', iconCls: 'ico-save'},
            {text:'Cancelar', action:'cancel', iconCls: 'ico-cancel'}
        ];
        
        this.callParent(arguments);
    },
    submitForm: function(){
        this.getComponent(0).submitForm();
    },
    cancelar: function(){
        this.close();
    }
});